package org.smartboot.flow.example;


import org.smartboot.flow.core.EngineContext;
import org.smartboot.flow.core.script.ScriptCondition;
import org.smartboot.flow.core.script.ScriptExecutor;
import org.springframework.stereotype.Service;

/**
 * @author qinluo
 * @date 2022-11-11 21:45:21
 * @since 1.0.0
 */
@Service("alwaysFalseCondition")
public class AlwaysFalseScriptExecutor extends ScriptExecutor<Integer, String> {

    @Override
    public Object execute(EngineContext<Integer, String> context) {
        System.out.println("always false invoked " + script);
        return true;
    }

    @Override
    public String getType() {
        return "alwaysfalse";
    }
}
